import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Home from '@/components/Home'
import Categories from '@/components/classification/Categories'


Vue.use(Router)

const router= new Router({
  routes: [
    {path: '/',redirect:"/login"},  
    {path: '/login',component: Login},
   
    {path: '/home',component: Home,
    children:[
      {path: '/categories',  component: Categories },

    ]
  },

 
  ]
})

export default router
